/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pe.siass.dao;

import com.pe.siass.beans.ParametrosBean;
import java.util.List;
import org.apache.ibatis.session.SqlSession;


/**
 *
 * @author Hrengifo
 */
public class ParametroDao {
    
    public int insertParametros(ParametrosBean parametrosBean, SqlSession sqlSession) throws Exception{
         int aux = sqlSession.insert("insertParametros", parametrosBean);
         return aux;
    }

    public int updateParametros(ParametrosBean parametrosBean, SqlSession sqlSession) throws Exception{
         int aux = sqlSession.update("updateParametros", parametrosBean);
         return aux;
    }

    public List<ParametrosBean> selectParametros(ParametrosBean parametrosBean, SqlSession sqlSession) throws Exception{
         List<ParametrosBean> lstParametrosBean = sqlSession.selectList("selectParametros", parametrosBean);
        return lstParametrosBean;
    }

}
